#ifndef MYMAINWINDOW_H
#define MYMAINWINDOW_H

#include <QtGui>
#include <QtGui/QMainWindow>
#include <QGraphicsScene>
#include <QGroupBox>
#include <QLabel>
#include <vector>
#include <QPushButton>
#include <QFile>
#include <QDebug>
#include <Qfile>
#include <QTextStream>
#include <string>
#include <queue>
#include <vague.h>

class MyMainWindow : public QMainWindow {

    Q_OBJECT

    protected:

      QGraphicsScene * sceneJeu;
      QGraphicsScene * sceneMenu;

      QGraphicsView * vueJeu;
      QGraphicsView * vueMenu;

      QGroupBox* box;
      QGroupBox* box2;

      int largeur ;
      int hauteur;
      static int grille[16][16];

      QLCDNumber* creditsNumber;
      QLCDNumber* viesNumber;

      QLabel * nextWave;
      QLabel * credits;
      QLabel * vies;

      std::vector <QPushButton *> ButtonVector;
      std::queue <Vague> fileVague ;


      void initialiserJeu();
      void initialiserMenu();
      void initialiserVague();
      void modification();
      void afficheimage(QString, int, int);


   public:
        MyMainWindow(QWidget * parent = 0);
       /* static int getCase (int i, int j){
            return grille[i][j];
        }*/




};

#endif // MYMAINWINDOW_H
